using System.Reflection;
using System.Reflection.Metadata;
using System.Xml.Linq;
using System;
using Xunit;
using Recorder;

 public class TestGame 
 {
 public TestGame (String name)
 {
     super(name);
 }   
     private Game  g;
     public void setUp()
     {
         g=new Game();
     }
    //public int score ()
    //{
      //  return itsScore;
    //}
    //public void add(int pins)
    //{
      //  itsScore +=pins;
    //}
    //private int itsScore =0;
   //}
   public void testOneThrows()
   {
       Game g =new Game();
       g.Add(5);
       Assert.Equals(5,g,Score());
       Assert.Equals(1,g,getCurrentFrame());
   }
   public void tsetTwoThrowsNoMark()
   {
       Game g = new Game();
       g.add(5);
       g.add(4);
       Assert.Equals(9,g,Score());
        Assert.Equals(2,g,getCurrentFrame());
   }
    public void testFourThrowsNoMark()
        {
            Game g = new Game();
            g.Add(5);
            g.Add(4);
            g.Add(7);
            g.Add(2);
            Assert.Equal(18,g.GetScore());
            Assert.Equal(9,g.ScoreForFrame(1));
            Assert.Equal(18,g.ScoreForFrame(2));
            Assert.Equals(3,g,getCurrentFrame());
        }
         public void testSimpleSpare()
        {
            Game g= new Game();
        }
 }
